<?php
$this->breadcrumbs = array(
    'Contatti' => array('index'),
    $model->title,
);

$this->menu = array(
    array('label' => 'Elenco Contatti', 'url' => array('index', 'idAutore' => $model->idAutore)),
    array('label' => 'Aggiungi Contatto', 'url' => array('create', 'idAutore' => $model->idAutore)),
    array('label' => 'Aggiorna Contatto', 'url' => array('update', 'id' => $model->id)),
    array('label' => 'Elimina Contatto', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => 'Gestisci Contatto', 'url' => array('admin', 'idAutore' => $model->idAutore)),
);
?>

<h1>View Contatto #<?php echo $model->id; ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        'title',
        'contacts',
        array(
            'label' => 'Riferimento',
            'type' => 'raw',
            'value' => TipoContatto::GetHtml($model->TipoContatto->cod,$model->contacts),
        ),
        array(// related city displayed as a link
            'label' => 'Tipo Contatto',
            'type' => 'raw',
            'value' => CHtml::encode($model->TipoContatto->descr),
        ),
        array(// related city displayed as a link
            'label' => 'Autore',
            'type' => 'raw',
            'value' => CHtml::encode($model->Autore->nome),
        ),
    ),
));
?>
